#ifndef BASEEDITOR_H
#define BASEEDITOR_H

#include <QObject>
#include <QModelIndex>
#include <QDialog>
#if QT_VERSION <0x050000
#include <QWSServer>
#include "syszuxim.h"
#endif
#include "common/common.h"

class BaseEditor:public QDialog
{
public:
    BaseEditor(const QModelIndex &index=QModelIndex(),QWidget *parent = 0);
    ~BaseEditor();
protected:
    bool mIsNew;
    const QModelIndex mIndex;
#if QT_VERSION <0x050000
    SyszuxIM *mInputMethod;
#endif
signals:
    void updateData();
};

#endif // BASEEDITOR_H
